package com.chinacoal.microservice.fallback;

import com.chinacoal.microservice.FeeRateTemplateClient;
import com.chinacoal.microservice.pojo.CcmsSmartleasingRoom;
import com.chinacoal.microservice.pojo.CcmsSmartleasingTaxRateTemplate;
import com.chinacoal.microservice.util.CodeMsg;
import com.chinacoal.microservice.util.QueryCriteria;
import com.chinacoal.microservice.util.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhuliang
 * @version V1.0
 * @Description: 费用税率模板-异常回退类
 * @date 2020-12-05 14：59
 */
@Component
public class FeeRateTemplateClientFallback implements FeeRateTemplateClient {

    /**
     * @Description: 查询所有的费用税率模板信息(带分页),异常回退类
     * @author zhuliang
     * @date 2020/12/5 15:19
     */
    @Override
    public Result<List<CcmsSmartleasingTaxRateTemplate>> getAllByPage(QueryCriteria queryCriteria) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 条件查询所有的费用税率模板信息(带分页)
     * @author zhuliang
     * @date 2020/12/5 15:28
     */
    @Override
    public Result<List<CcmsSmartleasingTaxRateTemplate>> getAllByCondition(QueryCriteria queryCriteria) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 查询相关房间信息
     * @author zhuliang
     * @date 2020/12/5 16:02
     */
    @Override
    public Result<List<CcmsSmartleasingRoom>> echoAssociatedRoom(String pkTaxRateTemplateId) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 添加费用税率模板消息
     * @author zhuliang
     * @date 2020/12/5 16:17
     */
    @Override
    public Result addFeeRateTemplate(CcmsSmartleasingTaxRateTemplate taxRateTemplate, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据税率模板id查询模板消息
     * @author zhuliang
     * @date 2020/12/5 16:23
     */
    @Override
    public Result<CcmsSmartleasingTaxRateTemplate> getTemplateById(String pkTaxRateTemplateId) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 修改费用税率模板消息
     * @author zhuliang
     * @date 2020/12/5 16:33
     */
    @Override
    public Result updateTemplate(CcmsSmartleasingTaxRateTemplate taxRateTemplate, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据税率模板id删除模板消息
     * @author zhuliang
     * @date 2020/12/5 16:50
     */
    @Override
    public Result deleteTemplate(String pkTaxRateTemplateId, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }
}
